//
//  MineSettingViewCell.m
//  Peso Guide
//
//  Created by macbook on 2025/6/12.
//

#import "MineSettingViewCell.h"

@interface MineSettingViewCell ()

@property (nonatomic, strong) UILabel *titLabel;
@property (nonatomic, strong) UIImageView *rightImg;

@end

@implementation MineSettingViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _titLabel = [PesoKit createLabelWithFrame:CGRectMake(32, 0, KScreenWidth-32*2, 60) backGroundColor:ColorHex(@"#FFFFFF") text:@"" textColor:ColorHex(@"#0E1D31") font:FONT(FontWeightStyleMedium, 15)];
        [self.contentView addSubview:_titLabel];
        
        _rightImg = [PesoKit createImageViewWithFrame:CGRectMake(KScreenWidth-33-7, 26.5, 7, 12) imageNamed:@"ic_product_right_icon"];
        [self.contentView addSubview:_rightImg];
    }
    return self;
}

- (void)setDataDic:(NSDictionary *)dataDic {
    _dataDic = dataDic;
    
    NSString *name = [NSString stringWithFormat:@"%@",[dataDic safeObjectForKey:@"name"]];
    
    _titLabel.text = name;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
